--- src/user.h.orig	2023-03-15 15:09:35 UTC
+++ src/user.h
@@ -55,9 +55,14 @@ GType          user_get_type (void) G_GNUC_CONST;
 User *         user_new (Daemon *daemon,
                          uid_t   uid);
 
+#ifdef HAVE_SHADOW_H
 void           user_update_from_pwent (User          *user,
                                        struct passwd *pwent,
                                        struct spwd   *spent);
+#else
+void           user_update_from_pwent (User          *user,
+                                       struct passwd *pwent);
+#endif
 void           user_update_from_cache (User *user);
 void           user_update_local_account_property (User    *user,
                                                    gboolean local);
